package po;

public class CoursePO {
	private int id = 0;
	private int credit = 0;
	private String name = null;
	private String time = null;
	private String place = null;
	private String teacher = null;
	private String classHour = null;
	private String intros = null;
	private String books = null;
	private String partment = null;
	private boolean isCompulsory = false;

	public CoursePO(int id, int credit, String name, String time,
			String place, String teacher, String classHour,
			String intros,String books,String partment, boolean isCompulsory) {
		this.id = id;
		this.credit = credit;
		this.name = name;
		this.time = time;
		this.place = place;
		this.teacher = teacher;
		this.classHour = classHour;
		this.intros = intros;
		this.books = books;
		this.partment = partment;
		this.isCompulsory = isCompulsory;
	}

	public int getID() {
		return id;
	}

	public void setID(int newID) {
		id = newID;
	}

	public int getCredit() {
		return credit;
	}

	public void setCredit(int newCredit) {
		credit = newCredit;
	}

	public String getName() {
		return name;
	}

	public void setName(String newName) {
		name = newName;
	}

	public String getTime() {
		return time;
	}

	public void setTime(String newTime) {
		time = newTime;
	}

	public String getPlace() {
		return place;
	}

	public void setPlace(String newPlace) {
		place = newPlace;
	}

	public String getTeacher() {
		return teacher;
	}

	public void setTeacher(String newTeacher) {
		teacher = newTeacher;
	}

	public String getClassHour() {
		return classHour;
	}

	public void setClassHour(String newClassHour) {
		classHour = newClassHour;
	}

	public String getIntros() {
		return intros;
	}

	public void setIntros(String newIntros) {
		intros = newIntros;
	}

	public String getBooks() {
		return books;
	}

	public void setBooks(String newBooks) {
		books = newBooks;
	}

	public String getPartment(){
		return partment;
	}
	
	public void setPartment(String newPartment){
		partment = newPartment;
	}
	public boolean getIsCompulsory() {
		return isCompulsory;
	}

	public void setIsCompulsory(boolean newIsCompulsory) {
		isCompulsory = newIsCompulsory;
	}

	public String[] toList() {
		String[] result = new String[10];
		result[0] = id + "";
		result[1] = credit + "";
		result[2] = name;
		result[3] = time;
		result[4] = place;
		result[5] = teacher;
		result[6] = classHour;
		result[7] = intros;
		result[8] = books;
		result[9] = isCompulsory + "";
		return result;
	}
}
